//index.js
//获取应用实例
const app = getApp()
function createColor(){
  var letter="0123456789ABCDEF";
  var color="#";
  for(var i=0;i<6;i++){
    color+=letter[parseInt(Math.random()*16)];
  }
  console.log(color);
  return color;
}
Page({
  data: {
    color:'',
    length:11,
    c: createColor()
  }
})
